﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.DBUtility;

public partial class Supervise_GmpInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string strSql, Id = SysFun.IsSQL(Request.QueryString["ID"]);
        System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> _AccountType = new System.Collections.Generic.List<HZ.MBSM.DAL.AccountType>();
        _AccountType.Add(HZ.MBSM.DAL.AccountType.enumSupervise);
        if (HZ.MBSM.BLL.Login.CheckAssert(_AccountType))
        {

            if (!IsPostBack)
            {
                Db db = new Db();
                System.Data.IDataReader dr;
                strSql = "select * from companygmp where id=" + Id;
                dr = db.DataReader(strSql);
                while (dr.Read())
                {
                    txtAccountId.Text = SysFun.ToTrim(dr["accountid"]);
                    txtAccountId.Visible = false;
                    txtGmpCode.Text = SysFun.ToTrim(dr["gmpcode"]);
                    txtGmpEndDate.Text = SysFun.ToTrim(dr["gmpenddate"]);
                    txtGmpRange.Text = SysFun.ToTrim(dr["gmprange"]);
                    txtGmpStarDate.Text = SysFun.ToTrim(dr["gmpstardate"]);
                }
                dr.Close();
                dr.Dispose();
                db.Close();

            }
        }

    }
 
}
